Skip to content

Expose last_login in list_display #6598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

akatsoulas
Copy link
Collaborator

No description provided.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to expose the last_login field in the User admin list display by subclassing the default UserAdmin.

  • Introduces a custom admin class (SumoUserAdmin) that extends the default UserAdmin to add "last_login" to the list_display.
  • Unregisters the default User admin and re-registers it using the new SumoUserAdmin.

@akatsoulas akatsoulas merged commit 01b8838 into mozilla:main Mar 31, 2025
2 checks passed
@akatsoulas akatsoulas deleted the admin-last-login branch March 31, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants